package com.yuesystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 帖子收藏类.
 */
@Data
public class CollectBlog {
  //收藏id
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  // 收藏者id
  private Long userId;

  // 被收藏的帖子id
  private Long blogId;

  // 收藏时间

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;
}
